const CryptoJS = require('crypto-js');  //引用AES源码js

const key = "xjh@CRYPTO_PassWord";  //十六位十六进制数作为密钥

//解密方法
export const Decrypt = (word: string) => {
    return CryptoJS.AES.decrypt(word, key).toString(CryptoJS.enc.Utf8);
}

//加密方法
export const Encrypt = (word: string) => {
    return CryptoJS.AES.encrypt(word, key).toString()
}